import request from '@/utils/request'

// 查询肉鸡成长记录列表
export function listChickenGrowthRecords(query) {
  return request({
    url: '/btlfbreed/chickenGrowthRecords/list',
    method: 'get',
    params: query
  })
}

// 查询肉鸡成长记录详细
export function getChickenGrowthRecords(recordId) {
  return request({
    url: '/btlfbreed/chickenGrowthRecords/' + recordId,
    method: 'get'
  })
}

// 新增肉鸡成长记录
export function addChickenGrowthRecords(data) {
  return request({
    url: '/btlfbreed/chickenGrowthRecords',
    method: 'post',
    data: data
  })
}

// 修改肉鸡成长记录
export function updateChickenGrowthRecords(data) {
  return request({
    url: '/btlfbreed/chickenGrowthRecords',
    method: 'put',
    data: data
  })
}

// 删除肉鸡成长记录
export function delChickenGrowthRecords(recordId) {
  return request({
    url: '/btlfbreed/chickenGrowthRecords/' + recordId,
    method: 'delete'
  })
}

// 初始化下拉框
export function getOptionUserselect() {
  return request({
    url: '/api/optionUserselect',
    method: 'get'
  })
}

// 初始化下拉框
export function getOptionCheckselect() {
  return request({
    url: '/api/optionCheckselect',
    method: 'get'
  })
}

